﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FizzWare.NBuilder;

namespace Merlba.Plinq
{
    public class PersonFilter
    {
public IQueryable<Person> FilterPeopleAsParallel(IList<Person> people)
{ 
    var filteredPeople = people.AsParallel<Person>().Where(x => x.BirthDate > DateTime.Now);
    return filteredPeople.AsQueryable();
} 

public IQueryable<Person> FilterPeople(IList<Person> people)
{ 
    var filteredPeople = people.Where(x => x.BirthDate > DateTime.Now);
    return filteredPeople.AsQueryable();
}
    }
}



